import express from 'express';
import wyApi from '../../lib/wyapi'; // 维易接口API
import CONFIG from '../../../config/config.config'; // CONFIG
// import { checkPermission } from '../../utils/utils'; // 工具类

const router = express.Router();

router.get('/', async function (Request, Response, next) {
  let query = Request.query
  wyApi.guessLike({
    ...query,
    page_no: query.pageNo,
    page_size: query.pageSize,
  }).then(res => {
    Response.json({
      data: {
        list: res.data
      }
    })
  })
});

module.exports = router;